package com.zxh.mall.order.feign;

import com.zxh.mall.common.utils.R;
import com.zxh.mall.order.vo.MemberAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author zhengxh
 * @version 1.0
 * @date 2024/5/19 - 05 - 19 - 20:03
 * @description com.zxh.mall.order.feign
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    public List<MemberAddressVO> getAddress(@PathVariable("memberId") Long memberId);

    @RequestMapping("/member/memberreceiveaddress/getAddressById/{id}")
    //@RequiresPermissions("member:memberreceiveaddress:info")
    public MemberAddressVO getAddressById(@PathVariable("id") Long id);
}
